package pojo;

import java.util.Optional;

public class LinuxAccount {
    /**
     * 服务器IP
     */
    private String ip;
    /**
     * 端口
     */
    private Integer port;
    /**
     * 账号
     */
    private String username;
    /**
     * 密码
     */
    private String password;
    /**
     * 日志根目录
     */
    private String logPath;

    public String getIp() {
        ip = Optional.ofNullable(ip).orElse("");
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getUsername() {
        username = Optional.ofNullable(username).orElse("");
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        password = Optional.ofNullable(password).orElse("");
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getLogPath() {
        logPath = Optional.ofNullable(logPath).orElse("");
        return logPath;
    }

    public void setLogPath(String logPath) {
        this.logPath = logPath;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }
}
